﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using W.M.Materiel.Application.IServices;
using W.M.Materiel.Domain.Entity;

namespace W.M.Materiel.Read.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Bom_list_categoryController : ControllerBase
    {
        private readonly IBom_list_categoryServices bom_List_CategoryServices;

        public Bom_list_categoryController(IBom_list_categoryServices bom_List_CategoryServices)
        {
            this.bom_List_CategoryServices = bom_List_CategoryServices;
        }

        /// <summary>
        /// 显示物料类别
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> GetBom_List_Categories()
        {
            var list= await bom_List_CategoryServices.GetBom_List_Categories();
            return Ok(list);
        }
    }
}
